package com.baizhi.service.impl;

import com.baizhi.dao.EmployeeDao;
import com.baizhi.Employee;
import com.baizhi.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeServiceImpl implements EmployeeService {
    @Autowired
    private EmployeeDao ed;
    @Override
    public void insertEmployee(Employee employee) {
        ed.insert(employee);
    }
    @Override
    public List<Employee> selectALLs() {
        return ed.selectDepart();
    }
}
